Skip to content

Expose Plot.channel and Plot.transform #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 2, 2022
Merged

Conversation

Fil
Copy link
Contributor

@Fil Fil commented May 19, 2021

helpers to create custom transforms (#170)

An example uses Plot.transform to create a uniform sample transform (diamond-carat-sampling)
An example of Plot.column is available at https://observablehq.com/@fil/plot-splom

@Fil Fil requested a review from mbostock May 19, 2021 10:40
@Fil Fil mentioned this pull request May 19, 2021
@Fil Fil force-pushed the fil/expose-transform-column branch from 0153e5d to 38c2452 Compare August 30, 2021 16:29
@Fil
Copy link
Contributor Author

Fil commented Aug 30, 2021

Rewritten; this time I've left out the renaming of maybeLazyChannel into column, and basic into transform, since it only creates merge conflicts. But when (if) we merge, it would be good to rename these functions internally.

@mbostock
Copy link
Member

mbostock commented Mar 1, 2022

Looks like the documentation needs updating here, since Plot.transform now takes (options, transform) rather than (...transforms)?

@mbostock
Copy link
Member

mbostock commented Mar 1, 2022

Also, do we want to expose maybeLazyChannel here, or lazyChannel? My inclination is that I’d prefer Plot.column to be an alias for the latter, so that a setter function is always returned (even if there is no source input).

@Fil Fil force-pushed the fil/expose-transform-column branch from 38c2452 to 8dab9dc Compare March 2, 2022 10:12
@Fil
Copy link
Contributor Author

Fil commented Mar 2, 2022

rebased with fixes to the documentation and adoption of lazyChannel instead of maybeLazyChannel.

@mbostock mbostock merged commit a1699be into main Mar 2, 2022
@mbostock mbostock deleted the fil/expose-transform-column branch March 2, 2022 18:20
@mbostock mbostock changed the title Expose Plot.column and Plot.transform Expose Plot.channel and Plot.transform Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants